import { DynamicModule, Global, LoggerService, Module } from '@nestjs/common';

import { Log4jsService } from './log4js.service';

@Global()
@Module({})
export class Log4jsModule {
  public static forRoot(): DynamicModule {
    return {
      module: Log4jsModule,
    };
  }
  public static createLogger(): LoggerService {
    return new Log4jsService();
  }
}
